package com.yunhe.common.model.model;

import com.yunhe.common.model.authority.StationDTO;
import com.yunhe.common.model.authority.UserDTO;

/**
 * 当用户操作电站状态或者电站基本信息之后发布此消息
 * @author  diaoshili
 */
public class OperatorStationMessage {

    private UserDTO user;

    private StationDTO station;

    //1 增加 2 更新 3 删除
    private Integer type;

    public UserDTO getUser() {
        return user;
    }

    public void setUser(UserDTO user) {
        this.user = user;
    }

    public StationDTO getStation() {
        return station;
    }

    public void setStation(StationDTO station) {
        this.station = station;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "OperatorStationMessage{" +
                "user=" + user +
                ", station=" + station +
                ", type=" + type +
                '}';
    }
}
